package com.enjoy.controller;

import com.enjoy.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

    @Autowired
    ProductService productService;

    @ResponseBody
    @RequestMapping("/get")
    public String get(){
        return productService.get();
    }
}
